<!DOCTYPE html>
<html>
<head>
    <title>量化运维管理系统</title>
    <meta charset="UTF-8"> 
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/css/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/css/demo.css">
    <script type="text/javascript" src="/static/Scripts/serverinfo.js"></script>
</head>

<body class="easyui-layout">

    <div data-options="region:'center',title:'主机管理',iconCls:'icon-large-smartart'">
        <div title="DataGrid" style="padding:2px">
            <table id="server_table"  data-options="toolbar:'#tb'"></table>
        </div>
    </div>
    
<!-- toolbar -->
    <div id="tb" style="padding:3px;height:auto">  
        <div style="margin-bottom:1px">
            <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add'" plain="true" id="server_add">新增</a>
            <a id="user_edit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" plain="true">修改</a>
            <a id="user_delete" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" plain="true">删除</a>
            <a id="passwd_show" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-tip'" plain="true">显示密码</a>
            <a id="passwd_hide" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-untip'" plain="true">隐藏密码</a>
            <div style="float:right;margin-right:20px">
                <input class="easyui-searchbox" data-options="prompt:'Please Input Value',searcher:doSearch" style="width:200px">
            </div>
        </div>
    </div>
    
    <div id="server" class="easyui-dialog" closed="true" style="width:400px;padding:20px 40px">
        <form id="fm" method="get">
            <p>服务器编号:
            <input name="srvnum" class="easyui-textbox easyui-validatebox" validType="strEngNum" style="width:200px;height:32px" required="true"></p>
            <p>IP 地 址:&nbsp&nbsp&nbsp&nbsp
            <input name="ip" class="easyui-textbox easyui-validatebox" validType="strip" style="width:200px;height:32px" required="true"></p>
            <p>用 户 名:&nbsp&nbsp&nbsp&nbsp
            <input name="user" class="easyui-textbox" style="width:200px;height:32px" required="true"></p>
            <p>密 码:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
            <input name="passwd" class="easyui-textbox" style="width:200px;height:32px" required="true"></p>
            <p>SSH 端口:&nbsp&nbsp
            <input name="port" class="easyui-textbox" style="width:200px;height:32px" required="true"></p>
            <p>产品管理人:
            <input name="productadmin" class="easyui-textbox" style="width:200px;height:32px" required="true"></p>
            <p>业 务 描 述:
            <input name="desc" class="easyui-textbox easyui-validatebox" validType="strChinese" style="width:200px;height:32px" required="true"></p>
            <div style="text-align: center">
                <a id="add" type="submit" style="margin:0 20px" class="easyui-linkbutton" iconCls="icon-save" onclick="serverinfoadd()">提交</a>
                <a id="modify" type="submit" style="margin:0 20px" class="easyui-linkbutton" iconCls="icon-save" onclick="serverinfomod()">修改</a>
                <a style="margin:0 20px" class="easyui-linkbutton" iconCls="icon-cancel" onclick="$('#server').dialog('close')">取消</a>
            </div>
        </form>
    </div>

</body>
</html>
